package cn.zhf.shop.service;

import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.Stage;
import org.springframework.stereotype.Service;

import javax.validation.Valid;
import java.util.List;

@Service
@Valid
public interface StageService {

    Message<?> insert(Stage s);

    Message<Stage> getStageByOrderId(String orderId);

    Message<List<Stage>> getStageByState(Integer state);

    Message<?> updateState(String orderId,Integer state);

    Message<List<Stage>> getAllStage();

    Stage getStageByOrderId2(String orderId);
}
